import request from '@/utils/request'
import Cookies from 'js-cookie'
export function house() {
    return request({
        url: "/General/get_house",
        method: "post",
        data: ''
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Stock_allot_accessories/accessories_receive_order_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Stock_allot_accessories/accessories_receive_order_page',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Stock_allot_accessories/get_excel_accessories?order_id=${data.order_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
export function getinfoList(data) {
    return request({
        url: '/Stock_allot_accessories/accessories_receive_order_info',
        method: 'post',
        data: data
    })
}

// 提交
export function save(data) {
    return request({
        url: '/Stock_allot_accessories/accessories_order_receive_edit',
        method: 'post',
        data: data
    })
}

export function get_goods_type(data){
    return request({
        url: '/Purchase_accessories/get_goods_type',
        method: 'post',
        data: data
    })
}
